public class T1 {
    public static void main(String[] args) {
        StringBuilder result = new StringBuilder();
        for (int num = 100; num < 1000; num++) {
            int hundreds = num / 100;
            int tens = (num % 100) / 10;
            int units = num % 10;
            
            if (Math.pow(hundreds, 3) + Math.pow(tens, 3) + Math.pow(units, 3) == num) {
                result.append(num).append(",");
            }
        }
        System.out.println(result.substring(0, result.length()-1));
    }
}
